﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="frmListarEntradas.aspx.cs" Inherits="Intelsi.WB.frmListarEntradas" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-size: small;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="post">
			<h2 class="title">Lista de Entrada de Productos</h2>
</div>
<fieldset>
    <asp:Button ID="btnNuevo" runat="server" Text="Nuevo Registro" 
        onclick="btnNuevo_Click" />
    <br />
    <br />
<table>
    <tr>
        <td><b><span class="style1">Ingrese Nº Comprobante: </span> </b></td>
        <td>
            <asp:TextBox ID="txtproveedor" runat="server" Height="25px" Width="313px"></asp:TextBox>
            &nbsp; <asp:Button ID="btnBuscar" runat="server" Text="Buscar" />
        </td>
    </tr>
</table>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        onobjectcreating="ObjectDataSource1_ObjectCreating" 
        SelectMethod="GetAllFromEntradaProductoByCriterio" 
        TypeName="Intelsi.BusinessLogic.EntradaProductosBL">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtproveedor" Name="criterio" 
                PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:GridView ID="gventradas" runat="server" DataSourceID="ObjectDataSource1" 
        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
        GridLines="None" AllowPaging="True">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="IdEntrada" HeaderText="Codigo" 
                SortExpression="IdEntrada" />
            <asp:BoundField DataField="FechaEntrada" DataFormatString="{0:d}" 
                HeaderText="Fecha" SortExpression="FechaEntrada" />
            <asp:BoundField DataField="NroComprobante" HeaderText="Nº Comprobante" 
                SortExpression="NroComprobante" />
            <asp:TemplateField HeaderText="Accion">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" 
                        
                        PostBackUrl='<%# Eval("IdEntrada", "frmRegistrarEntradaProductos.aspx?acc=ver&IdEntrada={0}") %>'>Ver</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>

</fieldset>
</asp:Content>
